package com.snake.springboot.custom.api.service.base;

import com.snake.springboot.custom.api.model.base.CustSubAccountModel;
import com.snake.springboot.custom.api.request.base.CustSubAccQuery;
import com.snake.springboot.custom.api.request.base.SubAccPwdReq;
import com.snake.springboot.custom.api.request.page.PageQuery;
import org.snake.common.result.ReturnList;

import java.util.List;

/**
 * 商户子账号业务接口
 * 类{@code CustSubAccountService} </br>
 * 创建时间：2025/02/08 09:41
 * @author yangxt
 * @see
 */
public interface CustSubAccountService{


    CustSubAccountModel addCustSubAccount(CustSubAccountModel model);

    void modifyCustSubAccount(CustSubAccountModel model);

    void removeCustSubAccount(String id);

    ReturnList<CustSubAccountModel> queryList(PageQuery<CustSubAccQuery> params);

    List<CustSubAccountModel> queryList(CustSubAccQuery query);

    void updatePwdByMe(SubAccPwdReq pwdReq);

    void updatePwdByAdmin(SubAccPwdReq pwdReq);

    CustSubAccountModel queryDetail(String id);

    void updateState(CustSubAccountModel updateState);

}
